from pydantic import BaseModel
from datetime import datetime
from typing import Optional

class DocumentBase(BaseModel):
    title: str
    subject_id: int

class DocumentCreate(DocumentBase):
    file_path: str

class DocumentResponse(DocumentBase):
    id: int
    file_path: str
    status: str
    created_at: datetime
    modified_at: datetime

    class Config:
        orm_mode = True 